package com.youlai.boot.factory.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.factory.model.entity.WorkReportPackage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.factory.model.query.WorkReportPackageQuery;
import com.youlai.boot.factory.model.vo.WorkReportPackageVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 报工单-分包关联Mapper接口
 *
 * @author youlaitech
 * @since 2025-10-13 13:37
 */
@Mapper
public interface WorkReportPackageMapper extends BaseMapper<WorkReportPackage> {

    /**
     * 获取报工单-分包关联分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<WorkReportPackageVO>} 报工单-分包关联分页列表
     */
    Page<WorkReportPackageVO> getWorkReportPackagePage(Page<WorkReportPackageVO> page, WorkReportPackageQuery queryParams);

    /**
     * 批量保存报工单-分包关联数据
     *
     * @param list 报工单-分包关联数据列表
     * @return 影响行数
     */
    int batchSave(List<WorkReportPackage> list);


}
